package com.hilon.segment.jpa.service.impl;

import com.hilon.segment.jpa.entity.WareHouse;
import com.hilon.segment.jpa.repository.WareHouseRepository;
import com.hilon.segment.jpa.service.WareHouseService;
import com.hilon.base.service.EntityHandle;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Transactional(rollbackFor = Exception.class)
@Service
public class WareHouseServiceImpl extends EntityHandle<WareHouse> implements WareHouseService {
    private final WareHouseRepository entityRepository;

    public WareHouseServiceImpl(WareHouseRepository entityRepository) {
        this.entityRepository = entityRepository;
        super.buildCurRepository(entityRepository);
    }
}
